package com.twl.app.base.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "Shiftallowance")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_SHIFTALLOWANCE_DID", allocationSize = 1)

public class Shiftallowance implements Serializable{

	/**
	 * 轮班津贴
	 */
	private static final long serialVersionUID = 1L;

	private Integer did ;		//主键
	private String staffint ;  //员工ID
	private String stafftype ;	//员工类型（正式、派遣员工）
	private String stafftypes ;//员工类别 （分行 内设）
	private Integer Astaffnumber ;  //A加班餐补个数
	private Integer Bstaffnumber ;  //B加班餐补个数
	private Integer Cstaffnumber ;  //C加班餐补个数
	private Integer Dstaffnumber ;	//D加班餐补个数
	private Integer Estaffnumber ;	//E加班餐补个数
	private Integer CAstaffnumber;	//CA班
	private Integer CBstaffnumber;	//CB班
	private Integer meveint ;       //早班
	private Integer nightban ;      //晚班
	private Integer evenumber ;		//晚班车次数
	private Integer customerhourtwo ;   //客服1.2倍
	private Integer customerhourthree ;	//客服1.3倍
	private String amountdou ;//轮班津贴（计算得来）
	private String amountmeals;   //轮班餐补(授权)
	private String datemoney ;//日期
	private String desKey;// 密钥

	@Column(name = "Des_Key" )
	public String getDesKey() {
		return desKey;
	}

	public void setDesKey(String desKey) {
		this.desKey = desKey;
	}
	public Shiftallowance() {
		super();
	}
	
	public Shiftallowance(Integer did, String staffint, String stafftype,
			String stafftypes, Integer astaffnumber, Integer bstaffnumber,
			Integer cstaffnumber, Integer dstaffnumber, Integer estaffnumber,
			Integer cAstaffnumber, Integer cBstaffnumber, Integer meveint,
			Integer nightban, Integer evenumber, Integer customerhourtwo,
			Integer customerhourthree, String amountdou, String amountmeals,
			String datemoney) {
		super();
		this.did = did;
		this.staffint = staffint;
		this.stafftype = stafftype;
		this.stafftypes = stafftypes;
		Astaffnumber = astaffnumber;
		Bstaffnumber = bstaffnumber;
		Cstaffnumber = cstaffnumber;
		Dstaffnumber = dstaffnumber;
		Estaffnumber = estaffnumber;
		CAstaffnumber = cAstaffnumber;
		CBstaffnumber = cBstaffnumber;
		this.meveint = meveint;
		this.nightban = nightban;
		this.evenumber = evenumber;
		this.customerhourtwo = customerhourtwo;
		this.customerhourthree = customerhourthree;
		this.amountdou = amountdou;
		this.amountmeals = amountmeals;
		this.datemoney = datemoney;
	}




	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Column(name = "staffint")
	public String getStaffint() {
		return staffint;
	}
	public void setStaffint(String staffint) {
		this.staffint = staffint;
	}
	@Column(name = "stafftype")
	public String getStafftype() {
		return stafftype;
	}
	public void setStafftype(String stafftype) {
		this.stafftype = stafftype;
	}
	@Column(name = "stafftypes")
	public String getStafftypes() {
		return stafftypes;
	}
	public void setStafftypes(String stafftypes) {
		this.stafftypes = stafftypes;
	}
	@Column(name = "Astaffnumber")
	public Integer getAstaffnumber() {
		return Astaffnumber;
	}
	public void setAstaffnumber(Integer astaffnumber) {
		Astaffnumber = astaffnumber;
	}
	@Column(name = "Bstaffnumber")
	public Integer getBstaffnumber() {
		return Bstaffnumber;
	}
	public void setBstaffnumber(Integer bstaffnumber) {
		Bstaffnumber = bstaffnumber;
	}
	@Column(name = "Cstaffnumber")
	public Integer getCstaffnumber() {
		return Cstaffnumber;
	}
	public void setCstaffnumber(Integer cstaffnumber) {
		Cstaffnumber = cstaffnumber;
	}
	@Column(name = "Dstaffnumber")
	public Integer getDstaffnumber() {
		return Dstaffnumber;
	}
	public void setDstaffnumber(Integer dstaffnumber) {
		Dstaffnumber = dstaffnumber;
	}
	@Column(name = "Estaffnumber")
	public Integer getEstaffnumber() {
		return Estaffnumber;
	}
	public void setEstaffnumber(Integer estaffnumber) {
		Estaffnumber = estaffnumber;
	}
	@Column(name = "meveint")
	public Integer getMeveint() {
		return meveint;
	}
	public void setMeveint(Integer meveint) {
		this.meveint = meveint;
	}
	
	@Column(name = "nightban")
	public Integer getNightban() {
		return nightban;
	}
	public void setNightban(Integer nightban) {
		this.nightban = nightban;
	}

	@Column(name = "evenumber")
	public Integer getEvenumber() {
		return evenumber;
	}
	public void setEvenumber(Integer evenumber) {
		this.evenumber = evenumber;
	}
/*	@Column(name = "judgeint")
	public Integer getJudgeint() {
		return judgeint;
	}
	public void setJudgeint(Integer judgeint) {
		this.judgeint = judgeint;
	}*/
	@Column(name = "amountdou")
	public String getAmountdou() {
		return amountdou;
	}
	public void setAmountdou(String amountdou) {
		this.amountdou = amountdou;
	}
	@Column(name = "datemoney")
	public String getDatemoney() {
		return datemoney;
	}
	public void setDatemoney(String datemoney) {
		this.datemoney = datemoney;
	}

	
	@Column(name = "CAstaffnumber")
	public Integer getCAstaffnumber() {
		return CAstaffnumber;
	}

	public void setCAstaffnumber(Integer cAstaffnumber) {
		CAstaffnumber = cAstaffnumber;
	}
	@Column(name = "CBstaffnumber")
	public Integer getCBstaffnumber() {
		return CBstaffnumber;
	}

	public void setCBstaffnumber(Integer cBstaffnumber) {
		CBstaffnumber = cBstaffnumber;
	}
	@Column(name = "amountmeals")
	public String getAmountmeals() {
		return amountmeals;
	}

	public void setAmountmeals(String amountmeals) {
		this.amountmeals = amountmeals;
	}


	@Column(name = "customerhourtwo")
	public Integer getCustomerhourtwo() {
		return customerhourtwo;
	}

	public void setCustomerhourtwo(Integer customerhourtwo) {
		this.customerhourtwo = customerhourtwo;
	}
	@Column(name = "customerhourthree")
	public Integer getCustomerhourthree() {
		return customerhourthree;
	}

	public void setCustomerhourthree(Integer customerhourthree) {
		this.customerhourthree = customerhourthree;
	}

	@Override
	public String toString() {
		return "Shiftallowance [did=" + did + ", staffint=" + staffint
				+ ", stafftype=" + stafftype + ", stafftypes=" + stafftypes
				+ ", Astaffnumber=" + Astaffnumber + ", Bstaffnumber="
				+ Bstaffnumber + ", Cstaffnumber=" + Cstaffnumber
				+ ", Dstaffnumber=" + Dstaffnumber + ", Estaffnumber="
				+ Estaffnumber + ", CAstaffnumber=" + CAstaffnumber
				+ ", CBstaffnumber=" + CBstaffnumber + ", meveint=" + meveint
				+ ", nightban=" + nightban + ", evenumber=" + evenumber
				+ ", customerhourtwo=" + customerhourtwo
				+ ", customerhourthree=" + customerhourthree + ", amountdou="
				+ amountdou + ", amountmeals=" + amountmeals + ", datemoney="
				+ datemoney + "]";
	}

	

}
